package com.byedu.domain.focus;

/**
 * Created by Luo on 2017-08-25.
 */
public class BaReSult {

    public BaReSult(boolean suc, String message) {
        this.message = message;
        this.suc = suc;
    }

    public BaReSult( String message) {
        this.message = "操作失败！"+message;
        this.suc = false;
    }
    public BaReSult(boolean suc) {
        if(suc) {
            this.message = "操作成功";
        }else{
            this.message = "操作失败";
        }
        this.suc = suc;
    }
    public BaReSult() {
    }
    private boolean suc ;

    public boolean isSuc() {
        return suc;
    }

    public void setSuc(boolean suc) {
        this.suc = suc;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    private String message;

    @Override
    public String toString() {
        return "BaReSult{" +
                "suc=" + suc +
                ", message='" + message + '\'' +
                '}';
    }
}
